import service from '@/utils/request'

// @Tags Exercises
// @Summary 创建exercise表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Exercises true "创建exercise表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /exercises/createExercises [post]
export const createExercises = (data) => {
  return service({
    url: '/exercises/createExercises',
    method: 'post',
    data
  })
}

// @Tags Exercises
// @Summary 删除exercise表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Exercises true "删除exercise表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /exercises/deleteExercises [delete]
export const deleteExercises = (data) => {
  return service({
    url: '/exercises/deleteExercises',
    method: 'delete',
    data
  })
}

// @Tags Exercises
// @Summary 批量删除exercise表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除exercise表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /exercises/deleteExercises [delete]
export const deleteExercisesByIds = (data) => {
  return service({
    url: '/exercises/deleteExercisesByIds',
    method: 'delete',
    data
  })
}

// @Tags Exercises
// @Summary 更新exercise表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Exercises true "更新exercise表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /exercises/updateExercises [put]
export const updateExercises = (data) => {
  return service({
    url: '/exercises/updateExercises',
    method: 'put',
    data
  })
}

// @Tags Exercises
// @Summary 用id查询exercise表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.Exercises true "用id查询exercise表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /exercises/findExercises [get]
export const findExercises = (params) => {
  return service({
    url: '/exercises/findExercises',
    method: 'get',
    params
  })
}

// @Tags Exercises
// @Summary 分页获取exercise表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取exercise表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /exercises/getExercisesList [get]
export const getExercisesList = (params) => {
  return service({
    url: '/exercises/getExercisesList',
    method: 'get',
    params
  })
}
// @Tags Class
// @Summary 分页获取class表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取class表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /class/getClassList [get]
export const getClassList = (params) => {
  return service({
    url: '/class/getClassList',
    method: 'get',
    params
  })
}
// @Tags Interview
// @Summary 分页获取interview表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取interview表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /interview/getInterviewList [get]
export const getInterviewList = (params) => {
  return service({
    url: '/interview/getInterviewList',
    method: 'get',
    params
  })
}
